package cn.edu.scau.cmi.shishuai.exercise6;

class Student1{
	int number;
	String name;
	Student1(){
		
	}
	Student1(int number, String name){
		this.number = number;
		this.name = name;
		System.out.println("我的名字是：" + name + "学号是：" + number);
	}
}

class UniverStudent extends Student1{
	boolean 婚否;
	UniverStudent(int number, String name, boolean b){
		super(number, name);
		婚否 = b;
		System.out.println("婚否 = " + 婚否);
	}
}


public class Example6_5 {

	public static void main(String[] args) {
			UniverStudent zhang = new UniverStudent(9901, "和小林", false);

	}

}
